package cn.bingo.yunsj.common;

import lombok.Data;

/**
 * 错误消息枚举类
 */
public enum StateCode {
    DELETE_SUCCESS(200,"删除成功！"),
    FIND_SUCCESS(200,"查询成功！"),
    INSERT_SUCCESS(200,"插入成功！"),
    SEARCH_SUCCESS(200,"搜索成功！"),
    REPLACEMENT_SUCCESS(200,"补发成功！"),
    STATE(200,"启动成功！"),
    DISABLE(200,"禁用成功！"),
    UPDATE_SUCCESS(200,"更新成功！"),
    UPLOAD_SUCCESS(200,"上传成功！"),
    UNBUND_SUCCESS(200,"解绑成功！"),
    ;

    private int code;
    private String message;

    StateCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
